import React from 'react';

export default (props) => {
  const { scriptText, domComplete, ...canvasProps } = props;

  return (
    <div
      style={{ display: 'none' }}
      {...canvasProps}>
      {`<script type='onSubmit'>${scriptText || ''}</script>`}
    </div>
  )
}